package com.eagle.rate.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.eagle.rate.service.TaobaoRateService;
import com.taobao.com.Util;

public class RateAction extends BaseAction {
	@Autowired
	private TaobaoRateService taobaoRateService;
	private static final Log _log = LogFactory.getLog(RateAction.class);

	public String execute() {
		try {
			// taobaoRateService.downRateCustom(4, "2012-05-10 00:00:00",
			// "2012-05-20 00:00:00");
			// taobaoRateService.downRateJob();
			return SUCCESS;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
	
	
	public String findIndex() {
		try {
			// taobaoRateService.downRateCustom(4, "2012-05-10 00:00:00",
			// "2012-05-20 00:00:00");
			// taobaoRateService.downRateJob();
			return SUCCESS;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
}